﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Kinect;

namespace TigerController.Comparison
{
    public class ComparisonRule
    {
        public Double MinimumRadian { get; set; }
        public Double MaximumRadian { get; set; }

        private List<JointType> _comparisonType;
        public List<JointType> ComparisonTypes
        {
            get
            {
                if (_comparisonType.Count == 0)
                {
                    var returnValue = new List<JointType>();
                    for (JointType jointType = JointType.HipCenter; jointType <= JointType.FootRight; jointType++)
                    {
                        returnValue.Add(jointType);
                    }
                    return returnValue;
                }
                else
                {
                    return _comparisonType;
                }
            }
            set
            {
                _comparisonType = value;
            }
        }

        public ComparisonRule()
        {
            _comparisonType = new List<JointType>();
        }
    }
}
